/*
   name: oth_teleporting.c
    who: Jack Chen 2007.8.29
   what: pseudo code for a random teleporting functionality requested by Fish.
         一個讓傳送點有任意傳送功能的原型 
*/


Action act;  //supposed there's a class named "Action"
             //actually handling all the "actions" behavior
             //所有的class這邊都大寫以資區別
                                                    
cout << "你看到一個按鈕 試著按按吧\n";                                                    
//cout << "1.那城board" << endl;
//cout << "2.底城board" << endl; 
//cout << "3.曼城board" << endl; 
cin >> act;                        // waiting users to react

if (act == "button_pushed")
{ 
    srand(time(NULL)); 
    place = rand() % 3 + 1;       // randomly choose a place to be teleported 
    
    switch(place)
    { 
        case 1: 
            玩家傳送到那城board; 
            break; 
        case 2: 
            玩家傳送到底城board; 
            break; 
        case 3: 
            玩家傳送到曼城board; 
            break; 
    } 
} 